/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const componentsRouter = {
  path: '/components',
  component: Layout,
  redirect: 'noredirect',
  name: 'ComponentDemo',
  meta: {
    title: 'components',
    icon: 'component',
    roles: ['zbl']
  },
  children: [
    {
      path: 'tinymce',
      component: () => import('@/views/components/tinymce'),
      name: 'TinymceDemo',
      meta: { title: 'tinymce', roles: ['zbl'] }
    },
    {
      path: 'markdown',
      component: () => import('@/views/components/markdown'),
      name: 'MarkdownDemo',
      meta: { title: 'markdown', roles: ['zbl'] }
    },
    {
      path: 'json-editor',
      component: () => import('@/views/components/jsonEditor'),
      name: 'JsonEditorDemo',
      meta: { title: 'jsonEditor', roles: ['zbl'] }
    },
    {
      path: 'splitpane',
      component: () => import('@/views/components/splitpane'),
      name: 'SplitpaneDemo',
      meta: { title: 'splitPane', roles: ['zbl'] }
    },
    {
      path: 'avatar-upload',
      component: () => import('@/views/components/avatarUpload'),
      name: 'AvatarUploadDemo',
      meta: { title: 'avatarUpload', roles: ['zbl'] }
    },
    {
      path: 'dropzone',
      component: () => import('@/views/components/dropzone'),
      name: 'DropzoneDemo',
      meta: { title: 'dropzone', roles: ['zbl'] }
    },
    {
      path: 'sticky',
      component: () => import('@/views/components/sticky'),
      name: 'StickyDemo',
      meta: { title: 'sticky', roles: ['zbl'] }
    },
    {
      path: 'count-to',
      component: () => import('@/views/components/countTo'),
      name: 'CountToDemo',
      meta: { title: 'countTo', roles: ['zbl'] }
    },
    {
      path: 'mixin',
      component: () => import('@/views/components/mixin'),
      name: 'ComponentMixinDemo',
      meta: { title: 'componentMixin', roles: ['zbl'] }
    },
    {
      path: 'back-to-top',
      component: () => import('@/views/components/backToTop'),
      name: 'BackToTopDemo',
      meta: { title: 'backToTop', roles: ['zbl'] }
    },
    {
      path: 'drag-dialog',
      component: () => import('@/views/components/dragDialog'),
      name: 'DragDialogDemo',
      meta: { title: 'dragDialog', roles: ['zbl'] }
    },
    {
      path: 'drag-select',
      component: () => import('@/views/components/dragSelect'),
      name: 'DragSelectDemo',
      meta: { title: 'dragSelect', roles: ['zbl'] }
    },
    {
      path: 'dnd-list',
      component: () => import('@/views/components/dndList'),
      name: 'DndListDemo',
      meta: { title: 'dndList', roles: ['zbl'] }
    },
    {
      path: 'drag-kanban',
      component: () => import('@/views/components/dragKanban'),
      name: 'DragKanbanDemo',
      meta: { title: 'dragKanban', roles: ['zbl'] }
    }
  ]
}

export default componentsRouter
